The WDMSTUB Sample accompanies Appendix A and illustrates how to supply stubs for kernel-mode support functions that would otherwise be missing from Windows 98.
The sample includes one component:
To build WDMSTUB.VXD, open the Microsoft Visual C++ project file named WDMSTUB.DSP and select the Build command from the Build menu. The build script depends on your having set the 98DDK environment variable to the directory where you installed the Windows 98 DDK. Depending on which version of the DDK you have, you may need to adjust the include or library paths in the project settings.
Edit the SYSTEM.INI file in the Windows 98 directory to add a line to the [386enh] section reading as follows:
[386enh]
device=wdmstub.vxd
The setup program for the book samples automatically copies the WDMSTUB.VXD file to the Windows 98 System directory, but you may copy this file by hand from the DEBUG subdirectory if necessary.
Now reboot your computer to allow the system to load WDMSTUB.
Your Windows 98 system now exports the kernel-mode subroutines that WDMSTUB implements. You’ll be able to load WDM drivers that refer to these routines from now on.
WDMSTUB is an exception to the blanket license to use the sample programs for this book. The author will grant a royalty-free license to anyone to redistribute WDMSTUB as part of a WDM driver package. The license will, however, include conditions designed to insure the consistency and quality of WDMSTUB on end user machines. Send e-mail to waltoney@oneysoft.com for information about obtaining this conditional license.